local skel = fk.CreateSkill{
  name = "lb_zero__mengyao_youhun",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["lb_zero__mengyao_youhun"] = "游魂",
  [":lb_zero__mengyao_youhun"] = "<b>锁定技</b>，你与其他角色计算距离-1。",

  ["$lb_zero__mengyao_youhun1"] = "",
  ["$lb_zero__mengyao_youhun2"] = "",
}

skel:addEffect("distance", {
  correct_func = function(self, from, to)
    if from:hasSkill(skel.name) then
      return -1
    end
  end,
})

skel:addAcquireEffect(function(self, player, is_start)
  player.room:broadcastPlaySound("./packages/lb_kill_zero/audio/skill/mengyao_audio/yihai_" .. math.random(1, 2))
end)

return skel
